package cc.mrbird.unit.dao;

import cc.mrbird.common.config.MyMapper;
import cc.mrbird.unit.domain.UnitInfo;
import cc.mrbird.unit.domain.UnitType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UnitInfoMapper extends MyMapper<UnitInfo> {

    List<UnitInfo> findUnitInfoWithType(UnitInfo unitInfo);

    UnitInfo findById(Long unit_id);
    UnitInfo findByUnitId(Long unit_id);
    int selectByName(String unit_name);

    void updateContact_id(@Param("contact_id") Long contact_id, @Param("unit_id")Long unit_id);
    void updateAuxiliaryInfor_id(@Param("auxiliary_id") Long auxiliary_id, @Param("unit_id")Long unit_id);
}
